{if !isset($editing_course)}
    <div id="course{$course['id']}_title_div" class="accordion_element_title">
{/if}
    <span class="ui-accordion-header-icon ui-icon ui-icon-triangle-1-e"></span>
    <h3>{$course['code']} ({$course['title']}) - {$course['credits']} {__ t = "Créditos"}</h3>
    <div class="buttons_panel">
        <img onclick="load_edit_course_interface({$course['id']})" src="{$STATIC_ROOT}images/edit.png" title="{__ t = 'Editar'}" alt="{__ t = 'Editar'}"/>
        <img onclick="remove_course({$course['id']})" src="{$STATIC_ROOT}images/remove.png" title="{__ t = 'Remover'}" alt="{__ t = 'Remover'}"/>
    </div>
        
{if !isset($editing_course)}
    </div>
{else}
    ##EDIT##CLASS##
{/if}

{if !isset($editing_course)}
    <div id="course{$course['id']}_content_div" class="accordion_element_content">
{/if}
    <fieldset>
        <legend>Adicionar Nova Turma</legend>
        {$course['add_new_class_view']}
    </fieldset>
    <fieldset>
        <legend>Turmas Salvas</legend>
        <div class="saved_classes">
            {foreach $course['classes'] as $class}
                {$class}
            {/foreach}
        </div>
    </fieldset>
{if !isset($editing_course)}
    </div>
{/if}
    